package forum.klanmichalakow.org;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;

public class DeleteThread {
	WebDriver driver = new FirefoxDriver();

	@Test(groups = { "forum" })
	public void newThreadDelete() {

		System.out.println("The test started ... Delete new thread");
		Forum.fullSize(driver);
		Forum.login(driver);

		try {
			Thread.sleep(10000);
		} catch (InterruptedException e) {

			e.printStackTrace();
		}

		Forum.deleteNewThread(driver);

		Forum.logout(driver);

	}

	@BeforeTest
	public void beforeTest() {
		System.out.println("Before test ....newThreadDelete");
	}

	@AfterTest
	public void afterTest() {
		System.out.println("After test ....newThreadDelete");
		Forum.close(driver);
	}

}
